package com.tony.blog.model.mapper;

import com.tony.blog.model.entity.BlogImage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: BlogImageMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/08/15/20:44
 * @Description:
 */
public interface BlogImageMapper {

    /**
    * @Description: selectByBlogId
    * @Param: [blogId, accessRootUrl]
    * @return: java.util.List<java.lang.String>
    * @Author: 皮蛋布丁
    * @Date: 2021/8/15 20:48
    */
    List<String> selectByBlogId(@Param("blogId") Integer blogId, @Param("accessRootUrl") String accessRootUrl);

    List<String> selectByBlogId2(@Param("blogId") Integer blogId);

    /**
    * @Description: insertSelective 上传微博图片
    * @Param: [image]
    * @return: java.lang.Integer
    * @Author: 皮蛋布丁
    * @Date: 2021/8/22 14:30
    */
    Integer insertSelective(BlogImage image);

    /**
    * @Description: updateBlogByIds 批量插入微博图片
    * @Param: [blogId, ids]
    * @return: java.lang.Integer
    * @Author: 皮蛋布丁
    * @Date: 2021/8/25 21:41
    */
    Integer updateBlogByIds(@Param("blogId") Integer blogId,@Param("ids") String ids);
}
